package com.flower.mapper;

import com.flower.annotation.AutoFill;
import com.flower.enumeration.OperationType;
import com.flower.model.dto.CustomerDTO;
import com.flower.model.dto.CustomerPageQueryDTO;
import com.flower.model.entity.Customer;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@SuppressWarnings("all")
/**
 *@ClassName CustomerMapper
 *@Description TODO
 *@Author @O_o  GW__
 *@Date 2025/6/13 15:35
 *@Version 1.0
 */
@Mapper
public interface CustomerMapper {
    Page<Customer> pageQuery(CustomerPageQueryDTO customerPageQueryDTO);
//    @AutoFill(value = OperationType.INSERT)
    void insertCustomer(CustomerDTO customerDTO);

    void updateCustomer(CustomerDTO customerDTO);

    void deleteCustomerById(Integer id);

    List<Customer> getAllCustomers();

    Integer userNameValidate();

    Integer salerValidate();

    void saveBatchAllData(List<Customer> customers);
}
